Skip to content

fix(settings)!: offer the knowledge settings only where the knowledge service is mounted - #36975

Merged
os-zhuang merged 13 commits into
mainfrom
claude/project-thread-wuyeiy
Nov 24, 2026
Merged

os-zhuang merged 13 commits into
mainfrom
claude/project-thread-wuyeiy

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Warren · project thread

Fixes #33933

Supersedes #34223: the same change, carried to a branch this session can push, with origin/main merged in (two conflicts resolved, one new pin adjusted; see Verification). Its earlier park on objectstack-ai/cloud#4569 is lifted by reading, not by that card: claim comment 7131785382 on #33933.

Clause-②: no (narrowing) — on a deployment that does not mount KnowledgeServicePlugin (every stock boot), GET / PUT /api/settings/knowledge and POST /api/settings/knowledge/test answer 404 UNKNOWN_NAMESPACE; a write of an ai.embedder_* key answers 400 UNKNOWN_KEY; POST /api/settings/ai/test_embedder answers 400 SETTINGS_ACTION_FAILED (no handler registered); the hub list drops knowledge and the Setup sidebar drops nav_settings_knowledge.
Metadata-protocol: none
Skills-docs: none — no skill under skills/** teaches the knowledge settings page or the ai.embedder_* keys; skills/objectstack-ai teaches wiring KnowledgeServicePlugin, which is unchanged.

BREAKING for a deployment that does not mount the knowledge service: the Knowledge page, the AI page's Embedder section, their two test buttons and the Setup entry are no longer offered by default. They come back, unchanged, when KnowledgeServicePlugin is mounted beside SettingsServicePlugin. Stored knowledge.* / ai.embedder_* rows are untouched. The changeset carries the ADR-0087 not-required marker (no-migration-prescription).

维护者速读

  • 改了什么:知识库设置页、AI 页的「Embedder」分区、两个测试按钮和 Setup 菜单项,改为只在挂载知识库服务时出现;默认部署不再显示。
  • 为什么改:知识库不是默认能力,以前每个部署都显示一个背后没有服务的知识库页面和测试按钮,误导管理员。
  • 风险与回滚:未挂载知识库服务的部署,这些设置接口改为返回 404 / 400;已存的值仍在库里,挂载服务后照常回来。回滚即还原本 PR。
  • 先看:packages/services/service-knowledge/src/knowledge-settings-contribution.ts(注册逻辑,尤其 ai 分区只并入内置 ai 清单那段)、packages/services/service-settings/src/manifests/ai.manifest.ts(Embedder 分区拆出)、packages/services/service-knowledge/src/knowledge-service-plugin.ts(optionalDependencies 保证设置插件先初始化)。
  • 两分钟验证:pnpm --filter @objectstack/service-knowledge exec vitest run src/__tests__/knowledge-settings-contribution.test.ts,预期 7 个用例全绿(挂载有、不挂载无)。
  • 托管环境:已读 cloud main 16b444e。托管的向量化器读不到 ai.embedder_* 时按「未配置」处理,不建、不报错;托管环境没有挂载知识库,也没有地方用向量化器。所以不再等 cloud#4569。
  • 需要你做的:复核(L1 + L2 契约复核)通过后,批准合并。

What changes

  • @objectstack/service-settings
    • builtinSettingsManifests drops knowledgeSettingsManifest (10 → 9).
    • aiSettingsManifest drops its embedder section; the section is exported as aiEmbedderSettingsSpecifiers, with withAiEmbedderSection(manifest) to join it (idempotent).
    • The default actionHandlers map no longer registers knowledge.test or ai.test_embedder.
    • The package entry exports knowledgeSettingsManifest, knowledgeTestActionHandler, aiSettingsManifest, aiEmbedderSettingsSpecifiers, withAiEmbedderSection, aiTestEmbedderActionHandler.
    • settings.ai.description no longer names the knowledge base, in all 11 bundled locales.
  • @objectstack/service-knowledge
    • New contributeKnowledgeSettings(ctx, version), called from KnowledgeServicePlugin.init(). It registers the knowledge manifest and knowledge.test, and joins the embedder section plus ai.test_embedder to the ai namespace. It joins them only when the served ai page is the bundled one, or already declares the embedder keys. A host's own ai manifest is left untouched, and the plugin logs a warning saying why. It also registers the nav_settings_knowledge Setup entry as a navigationContributions bundle through the manifest service.
    • The embedder section joins only the bundled ai page, recognised as that very declaration object (isBundledAiManifest). A host ai page that differs in any way (scope, permission, default, option table), or one served through an option source, is left as registered and the plugin logs a warning.
    • optionalDependencies names com.objectstack.service.settings (literal, ADR-0116), so "no settings service" at init is a fact of the composition.
    • Depends on @objectstack/service-settings; devDependency @objectstack/platform-objects for the merged-Setup-tree test.
  • @objectstack/platform-objects: the static nav_settings_knowledge entry leaves SETUP_NAV_CONTRIBUTIONS. Its label stays keyed in the Setup bundles.
  • docs/qa/platform-checklist/areas/platform-core.json: builtin-apps-nav-render (rev 16) and settings-hub-roundtrip (rev 9) restated for 9 builtins and the knowledge page's new source.

Tests

  • New service-settings/src/knowledge-settings-default-absent.pin.test.ts pins the default boot (8 cases, refusals by status + error.code):
    • no knowledge in the aggregate or the hub list;
    • GET knowledge answers 404 UNKNOWN_NAMESPACE;
    • no embedder key or button on the served ai page;
    • PUT ai {embedder_provider} answers 400 UNKNOWN_KEY;
    • POST ai/test_embedder answers 400 SETTINGS_ACTION_FAILED, judged against the hub's own no-handler answer, and POST knowledge/test answers 404 UNKNOWN_NAMESPACE;
    • no knowledge Setup entry;
    • no locale's AI description names the knowledge base.
  • New service-knowledge/src/__tests__/knowledge-settings-contribution.test.ts uses a LiteKernel with KnowledgeServicePlugin deliberately used BEFORE SettingsServicePlugin, against a bare control kernel (7 cases):
    • the namespace, the embedder keys and both actions are there with the service and absent without it. The actions are judged equal to their handler's own answer.
    • on the merged Setup tree (ObjectQL registry fold), nav_settings_knowledge appears exactly once with the service and never without it;
    • the two HTTP-door cases moved here from settings-default-action-handlers.pin.test.ts.
  • New service-knowledge/src/__tests__/knowledge-settings-host-ai.test.ts (7 cases, on a real SettingsService): the bundled page is joined; a page served through an option source is not; host pages with the bundled keys and a different scope, read permission, option table or default are left as the host's own object, with one warning; a host page that already declares the embedder keys keeps its declaration and gets the button handler; no settings service ⇒ nothing offered, no throw. Ablation: with the old key-set recognition put back, 3 of the host cases go red (scope, permission, default).
  • Updated:
    • cloud-managed-settings.pin.test.ts (landed on main after this PR was first written, 托管环境的「系统设置」隐藏自托管才用得到的基础设施设置(文件存储适配器、AI 提供商与向量化、知识库后端) #33891): boot() registers the ai manifest through withAiEmbedderSection, the page a knowledge-mounting deployment serves, and the key-classification case reads that joined page. The hosted projection is still judged over every key it hides, the embedder keys included.
    • packages/cli/test/connect-agent-both-halves-wire.pin.test.ts: main's count (37) less the knowledge entry, 36; the comment's history line extended.
    • ai.manifest.test.ts: the embedder describe reads the exported section; a joined-parse and idempotence case is added.
    • settings-default-action-handlers.pin.test.ts: the population excludes the two moved buttons.
    • settings-visibility-declaration.pin.test.ts and settings-translation-coverage.test.ts: the corpus keeps the knowledge declarations, so the measured 10 manifests and 90 predicates and the copy coverage still hold.

Acceptance notes

  • Acceptance 3 (a mounting app): no app in this repository mounts KnowledgeServicePlugin. The test kernel above stands in for one, as ruled; examples/app-todo is unchanged.
  • Hosted embedder: answered by reading cloud main 16b444e. packages/service-ai/src/plugin.ts applyEmbedder (L1785–1813) reads settings.getNamespace('ai'); with no embedder_* key declared, buildEmbedderFromValues (L576–577) reads the provider as 'none' and returns null, so no embedder is built and nothing throws. Its settings.registerAction('ai', 'test_embedder', …) (L1818) does not throw either: registerAction refuses only an unknown namespace (settings-service.ts L1964–1968). No hosted runtime mounts KnowledgeServicePlugin or consumes EMBEDDER_SERVICE (only packages/knowledge-turso, which nothing mounts). The hosted hide list (cloud-managed-settings.ts, 托管环境的「系统设置」隐藏自托管才用得到的基础设施设置(文件存储适配器、AI 提供商与向量化、知识库后端) #33891) keeps the embedder_* keys and test_embedder, so a hosted runtime that later mounts the knowledge service still hides them.
  • Cloud tests at the next framework pin move: packages/objectos-runtime/src/env-settings-door-namespace-coverage.test.ts and apps/cloud/test/settings-cross-org-doors.test.ts still count knowledge in the default registry and go red at the pin move that first includes this PR; no hosted behaviour changes. Carried by objectstack-ai/cloud#4959 (Blocked-by: this PR).
  • Accepted nits from the contract review (comments 7132371555, 7132488363, 7132537690): N1, the AI page and its Setup entry keep the title "AI & Embedder" / 「AI 与向量化」 where no embedder section shows (the card asks only for the section and the description; a rename is the maintainer's pick). N3, the @objectstack/embedder-openai install hint left the AI page's description with the section. N6, on the option-source branch the warning says the page "is not the bundled one"; no composition reaches that branch.
  • The refusal codes at the HTTP door are UNKNOWN_NAMESPACE / UNKNOWN_KEY (the route envelope's spelling of the service's UnknownNamespaceError / UnknownKeyError).
  • Surface deviations, both required by the approved dependency:
    • packages/services/service-settings/src/index.ts: the package entry exports the six symbols listed under What changes.
    • packages/services/service-knowledge/vitest.config.ts: src aliases for service-settings, types and platform-objects, as check:test-source-alias requires.
  • The two corpus tests (settings-visibility-declaration.pin.test.ts, settings-translation-coverage.test.ts) were outside the listed files too. They are measurement pins over this package's declarations, updated so they keep measuring the same declarations.

Verification

All verify runs go through scripts/pm/os-verify-lock.sh and quote the lock's VERDICT command-exit 0 line.

On this PR's final head 5023298

Commits on this branch: #34223's head ba9ec457d9, a merge of origin/main 144d368eac (a0cf1e359b), the hosted-projection pin adjustment (8ac823aa64), the contract review's S1/S2 fixes (c654ad07b7), and its S3 fix (5023298063).

  • Merge conflicts, both resolved by hand:
    • docs/qa/platform-checklist/areas/platform-core.json: main's revisions 17–19 of builtin-apps-nav-render kept; this change re-applied as revision 20 (10 namespaces; 46 Setup destinations, main's 47 less Knowledge).
    • packages/cli/test/connect-agent-both-halves-wire.pin.test.ts: main's 37 less Knowledge = 36; SETUP_NAV_CONTRIBUTIONS 29 → 28.
  • Dogfood battery, full, on 5023298063 (the PR checks do not run it: ci.yml's dogfood job skips pull_request events, so it was run here). Closure built with pnpm --filter '@objectstack/dogfood^...' build (exit 0), then pnpm --filter @objectstack/dogfood test under the lock, no shard, no path: VERDICT command-exit 0 · held the lock 2043s; Test Files 487 passed, 3 skipped (490); Tests 4127 passed, 68 skipped (4195). An earlier full run on c654ad07b7 read the same counts (VERDICT command-exit 0 · held the lock 2604s).
  • GitHub check-runs on 5023298063: 61 success, 9 expected skip, 0 failed (read with scripts/pm/pr-state.mjs --pr 36975).
  • @objectstack/service-settings test: Test Files 77 passed (77), Tests 1523 passed (1523), on 8ac823aa64; the later commits do not touch the package.
  • @objectstack/service-knowledge test on 5023298063: Test Files 6 passed (6), Tests 64 passed (64); typecheck exit 0.
  • @objectstack/service-settings typecheck: exit 0. @objectstack/cli test/connect-agent-both-halves-wire.pin.test.ts: 2 passed. @objectstack/plugin-auth, the 5 files that read builtinSettingsManifests: Tests 133 passed (133).
  • node scripts/check-platform-checklist.mjs --changed-from origin/main: OK, 8 anchors judged, 0 lost.
  • Contract review at CONTRACT_REVIEW_TIER: PASS on 8ac823aa64 (comment 7132371555, S1 and S2 should-fix), PASS on c654ad07b7 (7132488363, S1 and S2 closed, S3 should-fix), PASS on 5023298063 (7132537690, S3 closed, nits only).

Earlier readings on #34223's own heads, kept for the ablation record:

Package tests and typecheck on the final head f27aef7
  • @objectstack/service-settings test: Test Files 76 passed (76), Tests 1484 passed (1484); typecheck exit 0.
  • @objectstack/service-knowledge test: Test Files 5 passed (5), Tests 56 passed (56); typecheck exit 0.
  • @objectstack/platform-objects test: Test Files 122 passed (122), Tests 2007 passed (2007).
  • Direct readers of the moved surface, at 334f6da447:
    • @objectstack/plugin-auth: the 5 files that read builtinSettingsManifests, Tests 133 passed (133).
    • @objectstack/spec: settings-manifest.test.ts, Tests 86 passed (86).
    • @objectstack/platform-objects typecheck: exit 0.
Dogfood battery (narrowing): green at 1b210ee
  • Closure built with pnpm --filter '@objectstack/dogfood^...' build (exit 0). Then pnpm --filter @objectstack/dogfood test under the lock, with no shard and no path: Test Files 467 passed, 3 skipped (470); Tests 3962 passed, 42 skipped (4004); exit 0.
  • The only commit after that run is the merge of origin/main, which brings main's own commits; CI runs the battery on the merge.
  • An earlier attempt ran on a partial closure: the build stopped at driver-turso, because a dependency arrived with a merge before pnpm install. That run is discarded and is not counted.
Ablation of every pin (on-disk mutation via scripts/ablation-replace.mjs, WRAP restore, restore proven blob == HEAD and git diff HEAD empty)

Tests are src-aliased, so no dist leg is needed.

  • A1, knowledge manifest back in builtinSettingsManifests: red, 5 failed.
    • Absent pin: aggregate/hub list, GET knowledge 404, both test-button doors.
    • Default-action-handlers pin: the population, and "every declared action reaches a handler".
    • The first A1 attempt was a no-op, refused by the tool because its replacement contained the anchor. It was redone as A1b.
  • A2, embedder section back on the served ai page: red, 4 failed (no embedder key/button; PUT embedder_provider 400; population; handler reach).
  • A3, static nav_settings_knowledge back: red in the absent pin (stock nav) and in the knowledge suite (the merged tree holds the entry twice when mounted, once when bare).
  • A4, en AI description naming the knowledge base again: red, 1 failed (locale description).
  • A5, default actionHandlers registering ai.test_embedder again:
    • First run: GREEN. No pin covered an extra handler, so the door pin "neither test button reaches a handler" was added.
    • A5b after the pin: red, 1 failed.
  • A6, contributeKnowledgeSettings not called: red, 6 of 7 failed (only the bare-hub non-vacuity case stays green).
  • A7, com.objectstack.service.settings dropped from optionalDependencies: red, 6 of 7 failed. use order alone does not put settings first.
  • Every leg: ablation-replace: ok restored: blob == HEAD, and _DIFF_HEAD_LINES=0 at the end.
Gates
  • node scripts/pm/dispatch-gates.mjs --commands at 1b210ee4f6: 90 families, all exit 0. --ran: 90 derived, 90 run, 0 NOT-MEASURED (a derived zero).
  • At f27aef7db8 (91 families, check:adr-anchors added): check:i18n first read exit 1 on a platform-objects dist built before the merge. After pnpm --filter '@objectstack/platform-objects...' build it read exit 0 ("all bundles in sync"). The other families were read as recorded in the report.
  • node scripts/check-platform-checklist.mjs --changed-from origin/main: OK, 9 anchors judged, 0 lost.
  • node scripts/check-nul-bytes.mjs: OK. eslint --no-inline-config on the changed .ts files: exit 0.
  • git merge-tree --write-tree origin/main HEAD: exit 0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JQwxbZWBDHDjKnpVLP5aCQ

… service is mounted

The knowledge settings page, the ai namespace's embedder section, their two
test actions and the Setup entry move out of the default settings slate.
service-knowledge contributes all of them from KnowledgeServicePlugin.init()
when a settings service is present, with the settings plugin declared in
optionalDependencies so its absence is a composition fact.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5
…-objects test import

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5
…o the knowledge suite

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5
…ler on a default boot

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5
…bility and translation corpora

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5
…-wuyeiy

# Conflicts:
#	docs/qa/platform-checklist/areas/platform-core.json
#	packages/cli/test/connect-agent-both-halves-wire.pin.test.ts
…with its embedder section joined

The hosted-projection pin (#33891) booted builtinSettingsManifests and expected
the embedder keys and the test_embedder button on the served ai page. Since
#33933 those come only with the knowledge service, so the pin now registers
the ai manifest through withAiEmbedderSection, the page a knowledge-mounting
deployment serves, and classifies every key of that page.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbZWBDHDjKnpVLP5aCQ
@github-actions github-actions Bot added size/xl dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/platform-objects, @objectstack/service-knowledge, @objectstack/service-settings, touching 33 documentable anchor(s). ⚠️ 5 changed file(s) yielded no anchor (packages/services/service-knowledge/package.json, packages/services/service-knowledge/src/index.ts, packages/services/service-knowledge/vitest.config.ts, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

23 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 57445a699810a0545d8b3a7649a77327d47fb18b.

⛔ 7 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 5 changed file(s) yielded no anchor (packages/services/service-knowledge/package.json, packages/services/service-knowledge/src/index.ts, packages/services/service-knowledge/vitest.config.ts, …) — pages documenting those are invisible to this run
  • 10 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 13 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 57445a699810a0545d8b3a7649a77327d47fb18b → packageMentionDocs.

Which tree this was computed on

This run read content/docs from f1b56daa855c9b1cfd07e9ad91856dd8b4370058 — the merge of head 502329806381bd19b8afeb5717b9c8df3a3fa918 into base 57445a699810a0545d8b3a7649a77327d47fb18b, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin f1b56daa855c9b1cfd07e9ad91856dd8b4370058 && git checkout f1b56daa855c9b1cfd07e9ad91856dd8b4370058
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 57445a699810a0545d8b3a7649a77327d47fb18b 502329806381bd19b8afeb5717b9c8df3a3fa918 && git checkout -B drift-repro 57445a699810a0545d8b3a7649a77327d47fb18b && git merge --no-ff 502329806381bd19b8afeb5717b9c8df3a3fa918

node scripts/docs-audit/affected-docs.mjs --json 57445a699810a0545d8b3a7649a77327d47fb18b

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 57445a699810a0545d8b3a7649a77327d47fb18b → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZWBDHDjKnpVLP5aCQ

Contract-review-claim: session_01JQwxbZWBDHDjKnpVLP5aCQ · head 8ac823a · 2026-11-24T12:56Z

The review runs in an isolated sub-agent at CONTRACT_REVIEW_TIER (the declared narrowing); its brief and record land here.

…age only, judged by identity

The contribution recognised the bundled `ai` page by its key set, so a host
`ai` manifest with the bundled keys and its own scope, permission, default
or option table was replaced by the bundled declaration. It now recognises
the bundled page as that very declaration (or the hub's served copy of it,
whose sourced specifiers differ only in `options`), and leaves a host page
as the host wrote it. New tests pin both branches and the no-settings case.

The changeset's "What to do" now says how to remove the stored embedder and
knowledge credentials a default deployment no longer serves, and names the
host `actionHandlers.knowledge` case.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbZWBDHDjKnpVLP5aCQ
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZWBDHDjKnpVLP5aCQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8ac823aa649589a8f5c19072864fa3d9c6869823
Local-runs: none
Scope: docs/qa/platform-checklist/areas/platform-core.json, packages/cli/test/connect-agent-both-halves-wire.pin.test.ts, packages/platform-objects/src/apps/setup-nav.contributions.ts, packages/services/service-knowledge/package.json, packages/services/service-knowledge/src/tests/knowledge-settings-contribution.test.ts, packages/services/service-knowledge/src/index.ts, packages/services/service-knowledge/src/knowledge-service-plugin.ts, packages/services/service-knowledge/src/knowledge-settings-contribution.ts, packages/services/service-knowledge/vitest.config.ts, packages/services/service-settings/src/cloud-managed-settings.pin.test.ts, packages/services/service-settings/src/index.ts, packages/services/service-settings/src/knowledge-settings-default-absent.pin.test.ts, packages/services/service-settings/src/manifests/ai.manifest.test.ts, packages/services/service-settings/src/manifests/ai.manifest.ts, packages/services/service-settings/src/manifests/index.ts, packages/services/service-settings/src/manifests/knowledge.manifest.ts, packages/services/service-settings/src/settings-default-action-handlers.pin.test.ts, packages/services/service-settings/src/settings-service-plugin.ts, packages/services/service-settings/src/settings-visibility-declaration.pin.test.ts, packages/services/service-settings/src/translations/ar.ts, packages/services/service-settings/src/translations/de.ts, packages/services/service-settings/src/translations/en.ts, packages/services/service-settings/src/translations/es-ES.ts, packages/services/service-settings/src/translations/fr.ts, packages/services/service-settings/src/translations/ja-JP.ts, packages/services/service-settings/src/translations/ko.ts, packages/services/service-settings/src/translations/pt-BR.ts, packages/services/service-settings/src/translations/ru.ts, packages/services/service-settings/src/translations/zh-CN.ts, packages/services/service-settings/src/translations/zh-Hant.ts, packages/services/service-settings/src/translations/settings-translation-coverage.test.ts, pnpm-lock.yaml + packages/services/service-settings/src/settings-service.ts (registerManifest, registerAction, getManifest, servedManifest, runAction, resetNamespaceRows, namespaceReadScope), packages/services/service-settings/src/settings-read-door.ts, packages/services/service-settings/src/cloud-managed-settings.ts, packages/services/service-settings/src/sys-secret-orphan-report.ts, packages/services/service-settings/src/settings-routes.ts, packages/services/service-settings/src/manifest.ts (SETTINGS_PLUGIN_ID), packages/platform-objects/src/system/sys-platform-setting.object.ts and sys-platform-setting-audit.object.ts, .github/workflows/ci.yml (the dogfood job's event condition), .claude/agents/os-dev.md and .claude/skills/pm-dispatch/references/l1-review-checklist.md (the battery rule), .changeset/33933-knowledge-settings-with-service.md; and in cloud at origin/main 16b444e: packages/service-ai/src/plugin.ts, packages/service-cloud/src/control-plane-settings.ts, packages/service-cloud/src/control-plane-preset.ts, packages/objectos-runtime/src/env-settings-door-namespace-coverage.test.ts, apps/cloud/test/settings-cross-org-doors.test.ts. All of these are read at the head, none reviewed.
Security-touching: yes
Rule-change-verified: none

Read at 2026-11-24T13:02Z. First record on this head. The implementer is the project thread on branch claude/project-thread-wuyeiy; this review ran in an isolated sub-agent of the same session, from the card, the PR, the diff and the check-runs only. An earlier record on the superseded PR #34223 (comment 6907077911, head ba9ec457) was read as history; every judgment below was re-derived on this head.

① Derived judgments

  • Accept-set, default boot (no KnowledgeServicePlugin): narrowed, and named right. builtinSettingsManifests is 9 (no knowledge); aiSettingsManifest carries no embedder_* key, no embedder group and no test_embedder button; the default actionHandlers map registers neither knowledge.test nor ai.test_embedder. At the door (settings-routes.ts): GET / PUT /api/settings/knowledge and POST /api/settings/knowledge/test answer 404 UNKNOWN_NAMESPACE; a PUT of an ai.embedder_* key answers 400 UNKNOWN_KEY; POST /api/settings/ai/test_embedder answers 400 SETTINGS_ACTION_FAILED through runAction's no-handler branch. These are the answers the PR body and the changeset name.
  • Accept-set, service mounted: unchanged. contributeKnowledgeSettings registers the same knowledgeSettingsManifest, the same six embedder specifiers and button (moved verbatim into aiEmbedderSettingsSpecifiers) and the same two handlers. registerManifest keeps the previous actions map when it replaces a namespace, so ai.test survives the join; write predicates and option sources live in separate maps and survive too; the env-override report is de-duplicated, so the second registration of ai does not repeat it.
  • Registration order: right. optionalDependencies names the literal com.objectstack.service.settings, which equals SETTINGS_PLUGIN_ID. SettingsServicePlugin.init() registers its manifests, handlers and the settings service, so the ai page exists when the knowledge plugin's init() reads it. service-settings does not depend on service-knowledge, so the new package dependency adds no cycle (Validate Package Dependencies: success).
  • Public surface. @objectstack/service-settings: six symbols added to the package entry (knowledgeSettingsManifest, knowledgeTestActionHandler, aiSettingsManifest, aiEmbedderSettingsSpecifiers, withAiEmbedderSection, aiTestEmbedderActionHandler); builtinSettingsManifests and aiSettingsManifest shrink. @objectstack/service-knowledge: contributeKnowledgeSettings, knowledgeSetupNavItem, KNOWLEDGE_SETUP_NAV_BUNDLE_ID and one type added; a hard dependency on @objectstack/service-settings. @objectstack/platform-objects: SETUP_NAV_CONTRIBUTIONS loses nav_settings_knowledge (29 to 28). All stated in the changeset.
  • Setup entry. The contributed bundle has the shape of the branding precedent in settings-service-plugin.ts (namespace: 'sys', navigationContributions into group_configuration), is registered after the knowledge manifest and only when a settings service took it, and keeps requiredPermissions: ['manage_platform_settings']. Its position moves from between AI and Data Lifecycle to after the static Configuration entries (priority 110).
  • Stored rows: no read widening. namespaceReadScope reads a row of an unregistered namespace at the default capability, so I checked whether stored knowledge.* rows open to a setup.access holder once the namespace is unregistered. They do not: the manifest is scope: 'global', its rows live in sys_platform_setting and sys_platform_setting_audit, and both objects gate on manage_platform_settings at the object. ai.embedder_* rows stay under the registered ai namespace.
  • In-repository readers of the narrowed keys: none at runtime. embedder_*, test_embedder and the knowledge namespace are read only by the manifests, cloud-managed-settings.ts (hide list), translations and tests. content/docs/**, apps/docs/** and skills/** name none of them.
  • Hosted readers (cloud 16b444e). service-ai applyEmbedder reads getNamespace('ai'), which answers declared keys only; with no embedder_provider it builds nothing and does not throw. Its registerAction('ai', 'test_embedder', …) runs from a kernel:ready hook, so it cannot throw (ai stays registered) and, where the knowledge service is mounted, it still replaces the form-check handler the knowledge plugin registered at init(). No hosted runtime mounts KnowledgeServicePlugin. controlPlaneSettingsManifests passes ai through unchanged and names knowledge only in a comment. The PR body's account of the hosted runtime holds.
  • Pins. The default-absent pin judges by status and error.code, each case with a control. The contribution suite compares a mounted kernel with a bare one built by the same function, with the knowledge plugin used before the settings plugin. The two corpus pins and cloud-managed-settings.pin.test.ts re-join the moved declarations explicitly, so they measure what they measured before. The CLI pin moves 37 to 36 with an explicit not.toContain('nav_settings_knowledge'). The checklist restates 9 builtins, 10 served namespaces and 46 Setup destinations.

② Semver level

  • Clause-②: no (narrowing) is the true arm and reads the same on the PR body and the changeset. The ! title, the BREAKING paragraph and a "What to do" paragraph are present.
  • Metadata-protocol: none is true: no schema key, accepted value or metadata type moves; a settings manifest is a runtime registration. So patch is the level, on exactly the three packages the diff moves (service-settings, service-knowledge, platform-objects). packages/cli changes a test only.
  • ADR-0087 not-required (no-migration-prescription) fits: no export is retired, and stored rows are not rewritten.
  • Skills-docs: none is true (see ①).
  • The changeset's migration paragraph is incomplete on stored credentials: S2 below.

③ Boundary flags

  • Check-runs on this head, read at 13:02Z: 66 runs — 21 success, 9 skipped, 35 in progress, 1 failure. The gate verdicts are not in. Green so far include Check Changeset, Governed Surface Queue Guard, Validate Package Dependencies, Lint · ESLint, Type Check · source gates and Type Check · debt ledger. Every Test Core and Test UI shard, Type Check · workspace, Type Check · consumer gates, Build Core and five Lint families were still running. This PASS is a judgment of the contract and the tree; it is not a reading that CI is green. The seat reads convergence.
  • The one red is stale, and must be re-run. PR-body guards failed at 12:54:13Z on the duplicate-claim step: 知识库不是当前重点:默认不加载知识库,Setup 的「知识库」页和「AI 与向量化」里的向量化一段只在挂了知识库服务时才出现 #33933 was still claimed by draft PR fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223, which was closed at 12:55:06Z. Its other three steps passed. The check re-runs on edited / synchronize; it has not re-run yet.
  • Escalated: the dogfood battery is owed on this head, and the PR checks will not supply it. The PR body says the battery "runs on this PR's GitHub checks". It does not: ci.yml's dogfood job is conditioned on github.event_name != 'pull_request', the three shards read skipped on this head, and the bare Dogfood Regression Gate context reads success over legs that never ran. The only battery reading the PR carries is at 1b210ee4f6, before two merges of main (the second brought 托管环境的「系统设置」隐藏自托管才用得到的基础设施设置(文件存储适配器、AI 提供商与向量化、知识库后端) #33891's hosted projection onto the same files). The rule for a (narrowing) PR is one full battery on the final head, checked before queue entry (os-dev.md definition of done; L1 checklist). The seat owes that run, or a ruling that the queue run stands in for it, and the body sentence should say which.
  • Escalated: two cloud tests pin the retired default and go red at the next framework pin move. packages/objectos-runtime/src/env-settings-door-namespace-coverage.test.ts lists knowledge in EXPECTED_NAMESPACES and asserts builtinSettingsManifests has length 10; apps/cloud/test/settings-cross-org-doors.test.ts lists knowledge in PLATFORM_NAMESPACES and compares it with the registered set. No hosted behaviour breaks, but the PR body's hosted note does not name them. The cloud lane needs a carrier for the pin move.
  • The earlier record's two should-fixes are unanswered. Record 6907077911 on fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223 raised the same S1 and S2 as below on ba9ec457. This head is that head plus a merge and one pin adjustment; neither is fixed, and the PR body does not mention them.
  • Dev flags and open questions. The os-dev report carries no open question. The three surface deviations (package entry exports, vitest aliases, the two corpus pins) and the later-added readers (cloud-managed-settings.pin.test.ts, the CLI pin) are all counts or imports the change makes false; they belong in the diff. The claim's Blocked-by: objectstack-ai/cloud#4569 correction (7131785382) is supported by the cloud code read in ①.
  • Acceptance 3 is met by the test kernel, as area decision 6898471166 ruled; examples/app-todo is unchanged. Acceptance 1 and 2 are read from source (the door's 404 and the console's error card), not driven live.
  • SQL push-down: the diff adds no query, no id materialisation and no in-app join.
  • Opened by objectstack-fleet[bot], with the attribution comment naming os-warren; the body's first line carries the seat stamp. Nothing to flag.

④ Design judgment

The narrowing does what the maintainer ruled: it takes away pages that configured a service no stock deployment mounts, and no consumer in this repository or in the hosted runtime loses a working capability. The mechanism follows the branding precedent already in the tree. Sentence by sentence the code agrees with the contract, with one exception (S1).

S1 (should-fix) — contributeKnowledgeSettings recognises "the bundled ai page" by key set alone, so the sentence "a host that registered its own ai manifest keeps it untouched" is false for one class of host manifest. knowledge-settings-contribution.ts lines 106–111: when the registered ai manifest has exactly the bundled keys, the function registers withAiEmbedderSection(aiSettingsManifest) — the bundled declaration, not the registered one. A host that passed { ...aiSettingsManifest, scope, writePermission } or changed a default or an option table (the pattern cloud's controlPlaneSettingsManifests already applies to three other builtins) has its declaration silently replaced, permissions and scope included, with no warning. Tightest fix read in the tree: servedManifest returns the registered object itself when the namespace has no option source, so identity with aiSettingsManifest is available; or append to the registered declaration; or narrow the claim in the comment, the PR body and the changeset. Either way, pin the two branches that have no test: host manifest (untouched, warning logged) and already-declares-embedder (not re-registered, handler registered). Not a must-fix: no composition in this repository or in cloud mounts the service with a re-declared ai page today, and the replacement restores the bundled gate (manage_platform_settings, global).

S2 (should-fix) — the changeset says stored knowledge.* and ai.embedder_* values "stay in the database" and stops. Three of those keys are credentials (ai.embedder_api_key, knowledge.turso_auth_token, knowledge.ragflow_api_key), held as sys_secret ciphertext. On a default deployment after this change no served door removes them: PUT refuses the key or the namespace, and the built-in reset clears declared keys only (resetNamespaceRows walks the namespace payload). They also leave the settings attribution set, so sys-secret-orphan-report.ts will list them as orphaned. The "What to do" paragraph should tell an operator who wants a stored credential gone how to remove it (mount the service and clear it, or the supported cleanup path), and say that the orphan report will name these rows.

N1 (nit) — the page and its Setup entry are still titled "AI & Embedder" (「AI 与向量化」) in every locale on a deployment that now shows no embedder section. The card names the page by that title and asks only for the section and the description, so this is residue for a follow-up card to decide.

N2 (nit) — "knowledge mounted with no settings service offers nothing and does not throw" is read in the code and has no test.

N3 (nit) — the bundled ai description no longer says that @objectstack/embedder-openai must be installed on the host, and the embedder group's own description does not say it either, so a deployment that mounts the service loses that hint.

N4 (nit) — a host that passes its own actionHandlers with a knowledge entry while keeping the default manifests now fails at boot (registerAction refuses an unregistered namespace). The changeset says the default map changed; one sentence for this case would help.

Should-fix: S1, S2. Nits: N1–N4. No must-fix.

Implemented-by: claude/project-thread-wuyeiy
Reviewed-by: session_01JQwxbZWBDHDjKnpVLP5aCQ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZWBDHDjKnpVLP5aCQ

Contract-review-claim: session_01JQwxbZWBDHDjKnpVLP5aCQ · head c654ad0 · 2026-11-24T13:07Z

Delta review of S1 and S2 (record 7132371555) by the same isolated reviewer at CONTRACT_REVIEW_TIER.

…s bundled

The previous check let a specifier differ in `options` so that a page served
through an option source still counted as bundled; that also let a host page
that narrowed an option table be replaced. The bundled page is now the
registered declaration object and nothing else: a page served through an
option source is left alone with the warning (no `ai` key has one today).
Pinned with an options-only host case. The changeset names the `value_enc`
column for the manual credential cleanup.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbZWBDHDjKnpVLP5aCQ
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZWBDHDjKnpVLP5aCQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c654ad07b7a27e11757486f635240913121187cb
Local-runs: none
Scope: packages/services/service-knowledge/src/knowledge-settings-contribution.ts, packages/services/service-knowledge/src/tests/knowledge-settings-host-ai.test.ts + packages/services/service-settings/src/settings-service.ts (servedManifest, registerOptionSource, registerManifest, resetNamespaceRows), packages/services/service-settings/src/localization-locale-options.ts (the one registrar of an option source), .changeset/33933-knowledge-settings-with-service.md, .github/workflows/ci.yml (the dogfood job's event condition). The cited files are read at the head, none reviewed.
Security-touching: yes
Rule-change-verified: none

Delta review, read at 2026-11-24T13:09Z. It follows the record on 8ac823aa649589a8f5c19072864fa3d9c6869823 (PR comment 7132371555) and judges git diff 8ac823aa..c654ad07: one commit, three files (the changeset, knowledge-settings-contribution.ts, a new test file). Everything outside that delta stands as judged in the earlier record. Same isolated sub-agent, same inputs: the diff, the tree at the head, the PR body and the check-runs.

① Derived judgments

  • Accept-set: unchanged on every composition that exists. The stock boot and the knowledge-mounted boot over the bundled ai page behave as before: isBundledAiManifest returns true on identity, which is what getManifest('ai') returns when no option source serves an ai key (servedManifest), and no code in this repository or in cloud registers one (the only registrar is localization.locale).
  • Accept-set, host ai page with the bundled keys: narrowed back to what the contract says. A spread copy that changes a manifest field (scope, permission, label), a specifier field other than options, the specifier count or the specifier order is no longer taken for the bundled page; it is left as registered and the warning is logged. Right.
  • Public surface: isBundledAiManifest is exported from the module but not from the package entry (service-knowledge/src/index.ts is untouched), so nothing new is published. Right.
  • New test file: seven cases on a real SettingsService. The host-page cases assert identity of the registered manifest after the call (toBe(host)), absence of every embedder key, and exactly one warning; the already-declares case asserts identity and judges the handler by its own answer; the no-settings case asserts the all-false result. Not vacuous.

② Semver level

  • Unchanged: Clause-②: no (narrowing), Metadata-protocol: none, patch on the same three packages, the ADR-0087 marker. The delta adds prose to the changeset and no new published symbol.
  • The changeset's new "Stored credentials" paragraph is accurate against the tree: the three keys are the encrypted ones, reset clears declared keys only, global-scope rows live in sys_platform_setting.

③ Boundary flags

  • Check-runs on this head, read at 13:09Z: 37 runs so far — 9 success, 9 skipped, 19 in progress, 0 failure. PR-body guards now reads success, so the stale duplicate-claim red is gone. Check Changeset, every test shard and most lint and type-check families were still running. This PASS is not a reading that CI is green; the seat reads convergence.
  • Still escalated: the dogfood battery on the final head. Unchanged by this commit. The three dogfood shards read skipped on this head too (the job excludes pull_request events), the bare Dogfood Regression Gate reads success over legs that did not run, and the PR body still says the battery runs on the PR's checks and still carries only the 1b210ee4f6 reading. The seat owes the run, or a ruling that the queue run stands in, and a corrected sentence.
  • Still escalated: the two cloud tests that pin knowledge in the default registry (env-settings-door-namespace-coverage.test.ts, settings-cross-org-doors.test.ts) need a cloud carrier for the pin move. Nothing in this delta bears on it.
  • No dev flag or open question arrived with the delta. SQL push-down: the delta adds no query.

④ Design judgment

S1: closed. The key-set recognition is gone. isBundledAiManifest judges by identity, and the cases the earlier record named (a different scope, a different permission, a different default) are left untouched with a warning, each pinned; the already-declares-embedder branch is pinned too. One slice of the same sentence is still false and is graded on its own as S3.

S2: closed. The changeset now names the three stored credentials, says no door on a default deployment serves or clears them, says reset clears declared keys only, gives two ways to remove them and says the orphan report may list them.

S3 (should-fix) — isBundledAiManifest skips options when it compares specifiers, so a host ai page that differs from the bundled one only in an option table is still taken for the bundled page and replaced. knowledge-settings-contribution.ts, the last loop of the function: if (k !== 'options' && spec[k] !== own[k]) return false. A host that registers { ...aiSettingsManifest, specifiers } with one select's options narrowed (say, provider limited to the providers it allows) and nothing else changed passes the check; the plugin then registers withAiEmbedderSection(aiSettingsManifest), the host's table is gone, the accepted values widen back to the bundled list, and no warning is logged. The function's own comment says a manifest with a different "option table" must be left as the host wrote it, and the changeset says a host's own ai page "is left as the host wrote it"; the three host cases in the new test cover scope, permission and default, not options. The tolerance exists for a served copy made by an option source on an ai key, and nothing registers one. Either drop the tolerance (a sourced copy then reads as host-owned and gets the warning) or tell the two apart some other way, and pin an options-only host case. Not a must-fix, for the reason S1 was not: no composition mounts the service over a re-declared ai page today.

Nits from the earlier record: N2 (no test for "no settings service") and N4 (host actionHandlers.knowledge at boot) are answered, by the last test case and by a changeset sentence. N1 (the "AI & Embedder" title) and N3 (the lost @objectstack/embedder-openai install hint) stand as nits.

N5 (nit) — the changeset's manual removal path (delete rows from sys_platform_setting and the sys_secret rows they reference) gives no column to match the pair on; naming it (value_enc holds the sec_ handle) would make the step followable.

Should-fix: S3. Nits: N1, N3, N5. No must-fix.

Implemented-by: claude/project-thread-wuyeiy
Reviewed-by: session_01JQwxbZWBDHDjKnpVLP5aCQ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZWBDHDjKnpVLP5aCQ

Contract-review-claim: session_01JQwxbZWBDHDjKnpVLP5aCQ · head 5023298 · 2026-11-24T13:12Z

Delta review of S3 (record above) by the same isolated reviewer at CONTRACT_REVIEW_TIER.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZWBDHDjKnpVLP5aCQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 502329806381bd19b8afeb5717b9c8df3a3fa918
Local-runs: none
Scope: packages/services/service-knowledge/src/knowledge-settings-contribution.ts, packages/services/service-knowledge/src/tests/knowledge-settings-host-ai.test.ts + packages/services/service-settings/src/settings-service.ts (servedManifest, the value_enc write), packages/services/service-settings/src/local-crypto-provider.ts (the sec_ handle id), .changeset/33933-knowledge-settings-with-service.md. The cited files are read at the head, none reviewed.
Security-touching: yes
Rule-change-verified: none

Second delta review, read at 2026-11-24T13:13Z. It follows the records on 8ac823aa (PR comment 7132371555) and c654ad07 (comment 7132488363) and judges git diff c654ad07..50232980: one commit, three files. Everything outside that delta stands as judged in the two earlier records. Same isolated sub-agent, same inputs.

① Derived judgments

  • Accept-set, bundled ai page: unchanged. isBundledAiManifest is now served === aiSettingsManifest. getManifest('ai') returns the registered object itself when no option source serves an ai key (servedManifest), and nothing in this repository or in cloud registers one, so the stock knowledge-mounted boot still joins the embedder section. The first test case pins it.
  • Accept-set, any other ai page: left as registered. A host page that differs in any way, an option table included, and a page served through an option source both read as not bundled: no join, one warning. The already-declares-embedder branch is untouched by this delta. Right, and it is what the comment and the changeset now say.
  • Public surface: none added; isBundledAiManifest is still not on the package entry.
  • Tests: the option-source case now asserts no join, no embedder key and one warning; a fourth host case (the provider option table cut to two entries) asserts the registered manifest is the host's own object after the call. Not vacuous.

② Semver level

  • Unchanged: Clause-②: no (narrowing), Metadata-protocol: none, patch on the same three packages, the ADR-0087 marker.
  • The changeset's two edited sentences agree with the tree: the bundled page is recognised "as that very declaration", and the removal path now names the column, which is right (value_enc holds the handle, and a handle id is sec_ plus 32 hex characters).

③ Boundary flags

  • Check-runs on this head, read at 13:13Z: 37 runs so far — 7 success, 9 skipped, 21 in progress, 0 failure. The gate verdicts are not in. This PASS is not a reading that CI is green; the seat reads convergence.
  • Still escalated: the dogfood battery on the final head. Unchanged. The PR body still says the battery runs on the PR's checks and still carries only the 1b210ee4f6 reading; the dogfood job excludes pull_request events. The seat owes the run, or a ruling that the queue run stands in, and a corrected sentence.
  • Still escalated: the two cloud tests that pin knowledge in the default registry need a cloud carrier for the pin move.
  • No dev flag or open question arrived with the delta. SQL push-down: the delta adds no query.

④ Design judgment

S3: closed. The options tolerance is gone: recognition is strict identity, so a host page that narrows only an option table is left as the host wrote it and the host is warned. The case is pinned. The cost is stated in the code and the changeset: a bundled page served through an option source is also left alone, and no ai key has one today.

N5: answered by the changeset's value_enc sentence.

N6 (nit) — on the option-source branch the warning says the registered ai namespace "is not the bundled one", which is not the reason there (the registered declaration is the bundled one; its served copy is what differs). A second wording for that branch would be exact. No composition reaches it today.

N1 (the "AI & Embedder" title) and N3 (the lost @objectstack/embedder-openai install hint) stand as nits from the first record.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-wuyeiy
Reviewed-by: session_01JQwxbZWBDHDjKnpVLP5aCQ

VERDICT: PASS

@objectstack-fleet

objectstack-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZWBDHDjKnpVLP5aCQ

ACCEPT — PR #36975, head 502329806381bd19b8afeb5717b9c8df3a3fa918 · 2026-11-24T14:27Z

Seat opinion: land it. The narrowing is the card's ruled direction, every contract-review finding of grade should-fix was fixed and closed on this head, and the full dogfood battery is green on this exact head.

席位核对 — ACCEPT · head 502329806381bd19b8afeb5717b9c8df3a3fa918

  • ① Shape: open, draft, base main, first line Fixes #33933; merging delivers the whole card (acceptance 1 and 2 by the default-absent pin and the battery; acceptance 3, a mounting app, by the LiteKernel suite, as ruled on fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223). No closing keyword near another card. l1-face.mjs --pr 36975 at this head: shape, first-line, relation, keywords, releases-path, empty-changeset, nul-suspects, declarations, skills-docs and floor-checks ok.
  • ② Premise measured: the hosted embedder reading (cloud main 16b444e, packages/service-ai/src/plugin.ts L576–577, L1785–1818; objectstack settings-service.ts L1964–1968) and the absence of any hosted KnowledgeServicePlugin mount or EMBEDDER_SERVICE consumer, recorded on the card (7131785382) and confirmed independently by the contract review (7132371555 ①/④).
  • ③ Gates: check-runs at 5023298063 — 61 success, 9 expected skip, 0 failed (pr-state.mjs); Lint & Repo Gates and TypeScript Type Check success. Dogfood battery (owed by the ! title and the (narrowing) arm; the PR checks skip it on pull_request): full run on this head, VERDICT command-exit 0, Test Files 487 passed / 3 skipped, Tests 4127 passed / 68 skipped. Package suites and typecheck as quoted in the PR body's Verification block.
  • ④ Accepted deviations:
    • l1-face flags @objectstack/cli touched without a changeset entry: the one file is packages/cli/test/connect-agent-both-halves-wire.pin.test.ts, and the package ships files: [dist, README.md, CHANGELOG.md], so nothing published changes. No skip-changeset: the PR carries a real changeset for the three shipped packages.
    • Contract-review nits N1 (the "AI & Embedder" title stays), N3 (the @objectstack/embedder-openai install hint left with the section) and N6 (the option-source branch's warning wording) are accepted as named in the PR body's Acceptance notes; N1 is a product wording choice put to the maintainer, not filed.
  • ⑤ Out of scope and where it went: the two cloud tests that count knowledge in the default registry → objectstack-ai/cloud#4959 (Blocked-by: this PR). Skills-docs: none read true: no skill under skills/** teaches the knowledge settings page or the ai.embedder_* keys (git grep on this head). Changeset read sentence by sentence against the diff, including the new "Stored credentials" paragraph (value_enc handle, three encrypted keys) and the host actionHandlers.knowledge sentence.
  • ⑥ Landing: declared narrowing ⇒ the maintainer's approval plus the standing PASS at CONTRACT_REVIEW_TIER on this head (7132537690) before the queue. On approval the seat lands it (ready, auto-merge); the card closes by Fixes, and cloud#4959 unlocks at the merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-warren · session_01JQwxbZWBDHDjKnpVLP5aCQ

维护者速读

  • 改了什么:知识库设置页、AI 页的向量化分区、两个测试按钮和 Setup 菜单项,只在挂载知识库服务时出现;默认部署(含托管)不再显示没有服务在后面的知识库页面。
  • 为什么:知识库不是默认能力。托管侧读不到向量化设置时按「未配置」处理、不报错、无人使用(知识库不是当前重点:默认不加载知识库,Setup 的「知识库」页和「AI 与向量化」里的向量化一段只在挂了知识库服务时才出现 #33933 评论 7131785382),原阻塞 cloud#4569 不再需要。
  • 风险与回滚:未挂载知识库的部署,这些设置接口改答 404/400,已存值仍在库;cloud 下次升框架版本改两处测试(cloud#4959)。回滚即还原本 PR。
  • 要你做什么:批准合并。契约复核 PASS:评论 7132537690,Head-sha 502329806381bd19b8afeb5717b9c8df3a3fa918;席位 ACCEPT:评论 7134429071。

Approval requested — PR #36975 · 2026-11-24T14:30Z

The pull declares a narrowing (Clause-②: no (narrowing)), so it lands on the maintainer's approval. Check-runs at this head are green, and the full dogfood battery is green on this head (PR body, Verification). On an authorized approval the seat lands it.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 24, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 24, 2026 14:51
@os-zhuang
os-zhuang marked this pull request as ready for review November 24, 2026 14:51
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit a73edb3 Nov 24, 2026
80 of 81 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-wuyeiy branch November 24, 2026 15:19
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants